﻿package plugin.specialActivity
{
    import com.core.*;

    public class SpecialActivityControl extends Control
    {

        public function SpecialActivityControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            switch(param1.getName())
            {
                case "specialActivity":
                {
                    switch(param2.property)
                    {
                        case "updateBag":
                        {
                            this.target.update(ActivityPublic.UPDATEBAG, null);
                            break;
                        }
                        case "updateBossReward":
                        {
                            this.target.update(ActivityPublic.UPDATEBOSSREWARD, param2.newvalue);
                            break;
                        }
                        case "updateStateChange":
                        {
                            this.target.update(ActivityPublic.UPDATESTATECHANGE, param2.newvalue);
                            break;
                        }
                        case "updateRank":
                        {
                            this.target.update(ActivityPublic.UPDATERANK, param2.newvalue);
                            break;
                        }
                        case "updateTitleAngle":
                        {
                            this.target.update(ActivityPublic.UPDATETITLEANGLE, param2.newvalue);
                            break;
                        }
                        default:
                        {
                            break;
                        }
                    }
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
